package com.hj.storage;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author hj
 * @Date 2023/5/19
 * @Description:
 */
@EnableFeignClients
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.hj")
@SpringBootApplication
public class StorageApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(StorageApplication.class,args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(StorageApplication.class);
    }
}



/*
* fhs 踩坑:
* 第一种解决方式, 去掉fhs的依赖
*  <dependency>
            <groupId>com.hj</groupId>
            <artifactId>response</artifactId>
            <version>${hj.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.fhs-opensource</groupId>
                    <artifactId>easy-trans-spring-boot-starter</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.fhs-opensource</groupId>
                    <artifactId>easy-trans-mybatis-plus-extend</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
*
* 第二种解决方式:
*  调来调去,自己好了,怎么好的.实在是没法再复现.....
*
*
*
*
* */